package com.microsoft.tag.client.user.feign;

import com.microsoft.tag.client.user.feign.fallback.ClientUserFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 软件著作权:王艳明
 * 系统名称:SpringBoot后台管理系统
 *
 * @author WangYanming
 * @ClassName 类:ClientUserFeign.java
 * @Description 功能描述:feign 客户端接口
 * @Version 1.0
 * @date 2025-10-15 上午 09:20
 */
// 指定服务名和熔断回调类
@FeignClient(name = "server-user", path = "/user", fallback = ClientUserFeignFallback.class)
public interface ClientUserFeign {

    @RequestMapping(value = "/{id}", method = RequestMethod.GET)
    public String getUser(@PathVariable(value = "id") Long id);
}
